/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Act Invoice Override Code</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A17590 (C-0-T13953-A13954-A17590-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getActInvoiceOverrideCode()
 * @model extendedMetaData="name='ActInvoiceOverrideCode'"
 * @generated
 */
public enum ActInvoiceOverrideCode implements Enumerator {
	/**
	 * The '<em><b>COVGE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COVGE_VALUE
	 * @generated
	 * @ordered
	 */
	COVGE(0, "COVGE", "COVGE"),

	/**
	 * The '<em><b>PYRDELAY</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PYRDELAY_VALUE
	 * @generated
	 * @ordered
	 */
	PYRDELAY(1, "PYRDELAY", "PYRDELAY"),

	/**
	 * The '<em><b>EFORM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EFORM_VALUE
	 * @generated
	 * @ordered
	 */
	EFORM(2, "EFORM", "EFORM"),

	/**
	 * The '<em><b>FAX</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FAX_VALUE
	 * @generated
	 * @ordered
	 */
	FAX(3, "FAX", "FAX"),

	/**
	 * The '<em><b>GFTH</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #GFTH_VALUE
	 * @generated
	 * @ordered
	 */
	GFTH(4, "GFTH", "GFTH"),

	/**
	 * The '<em><b>LATE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LATE_VALUE
	 * @generated
	 * @ordered
	 */
	LATE(5, "LATE", "LATE"),

	/**
	 * The '<em><b>MANUAL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MANUAL_VALUE
	 * @generated
	 * @ordered
	 */
	MANUAL(6, "MANUAL", "MANUAL"),

	/**
	 * The '<em><b>ORTHO</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ORTHO_VALUE
	 * @generated
	 * @ordered
	 */
	ORTHO(7, "ORTHO", "ORTHO"),

	/**
	 * The '<em><b>OOJ</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OOJ_VALUE
	 * @generated
	 * @ordered
	 */
	OOJ(8, "OOJ", "OOJ"),

	/**
	 * The '<em><b>PAPER</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PAPER_VALUE
	 * @generated
	 * @ordered
	 */
	PAPER(9, "PAPER", "PAPER"),

	/**
	 * The '<em><b>PIE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PIE_VALUE
	 * @generated
	 * @ordered
	 */
	PIE(10, "PIE", "PIE"),

	/**
	 * The '<em><b>REFNR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #REFNR_VALUE
	 * @generated
	 * @ordered
	 */
	REFNR(11, "REFNR", "REFNR"),

	/**
	 * The '<em><b>REPSERV</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #REPSERV_VALUE
	 * @generated
	 * @ordered
	 */
	REPSERV(12, "REPSERV", "REPSERV"),

	/**
	 * The '<em><b>UNRELAT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #UNRELAT_VALUE
	 * @generated
	 * @ordered
	 */
	UNRELAT(13, "UNRELAT", "UNRELAT"),

	/**
	 * The '<em><b>VERBAUTH</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #VERBAUTH_VALUE
	 * @generated
	 * @ordered
	 */
	VERBAUTH(14, "VERBAUTH", "VERBAUTH");

	/**
	 * The '<em><b>COVGE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>COVGE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COVGE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int COVGE_VALUE = 0;

	/**
	 * The '<em><b>PYRDELAY</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PYRDELAY</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PYRDELAY
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PYRDELAY_VALUE = 1;

	/**
	 * The '<em><b>EFORM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>EFORM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EFORM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int EFORM_VALUE = 2;

	/**
	 * The '<em><b>FAX</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FAX</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FAX
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FAX_VALUE = 3;

	/**
	 * The '<em><b>GFTH</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>GFTH</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #GFTH
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int GFTH_VALUE = 4;

	/**
	 * The '<em><b>LATE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>LATE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LATE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int LATE_VALUE = 5;

	/**
	 * The '<em><b>MANUAL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MANUAL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MANUAL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int MANUAL_VALUE = 6;

	/**
	 * The '<em><b>ORTHO</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ORTHO</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ORTHO
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ORTHO_VALUE = 7;

	/**
	 * The '<em><b>OOJ</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OOJ</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OOJ
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OOJ_VALUE = 8;

	/**
	 * The '<em><b>PAPER</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PAPER</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PAPER
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PAPER_VALUE = 9;

	/**
	 * The '<em><b>PIE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PIE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PIE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PIE_VALUE = 10;

	/**
	 * The '<em><b>REFNR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>REFNR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #REFNR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int REFNR_VALUE = 11;

	/**
	 * The '<em><b>REPSERV</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>REPSERV</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #REPSERV
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int REPSERV_VALUE = 12;

	/**
	 * The '<em><b>UNRELAT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>UNRELAT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #UNRELAT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int UNRELAT_VALUE = 13;

	/**
	 * The '<em><b>VERBAUTH</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>VERBAUTH</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #VERBAUTH
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int VERBAUTH_VALUE = 14;

	/**
	 * An array of all the '<em><b>Act Invoice Override Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ActInvoiceOverrideCode[] VALUES_ARRAY =
		new ActInvoiceOverrideCode[] {
			COVGE,
			PYRDELAY,
			EFORM,
			FAX,
			GFTH,
			LATE,
			MANUAL,
			ORTHO,
			OOJ,
			PAPER,
			PIE,
			REFNR,
			REPSERV,
			UNRELAT,
			VERBAUTH,
		};

	/**
	 * A public read-only list of all the '<em><b>Act Invoice Override Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ActInvoiceOverrideCode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Act Invoice Override Code</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceOverrideCode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActInvoiceOverrideCode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Invoice Override Code</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceOverrideCode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActInvoiceOverrideCode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Invoice Override Code</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInvoiceOverrideCode get(int value) {
		switch (value) {
			case COVGE_VALUE: return COVGE;
			case PYRDELAY_VALUE: return PYRDELAY;
			case EFORM_VALUE: return EFORM;
			case FAX_VALUE: return FAX;
			case GFTH_VALUE: return GFTH;
			case LATE_VALUE: return LATE;
			case MANUAL_VALUE: return MANUAL;
			case ORTHO_VALUE: return ORTHO;
			case OOJ_VALUE: return OOJ;
			case PAPER_VALUE: return PAPER;
			case PIE_VALUE: return PIE;
			case REFNR_VALUE: return REFNR;
			case REPSERV_VALUE: return REPSERV;
			case UNRELAT_VALUE: return UNRELAT;
			case VERBAUTH_VALUE: return VERBAUTH;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ActInvoiceOverrideCode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ActInvoiceOverrideCode
